package com.gopay.common.cps.dao.wallet.promotions;

import java.math.BigDecimal;
import java.util.List;

import com.gopay.common.base.dao.BaseDAO;
import com.gopay.common.domain.dps.WaPromotionsLog;
import com.gopay.common.exception.GopayException;

/**
 * 红包推送日志表
 * @author LEI XIAOBAO
 * @date 2015年12月20日
 */
public interface WaPromotionsLogDao extends BaseDAO<WaPromotionsLog, Integer>{

	/**
	 * 获取红包信息根据类型
	 * @param type
	 * @return
	 */
	public WaPromotionsLog getWaPromotionsLogByType(String type) throws GopayException;
	
	/**
	 * 
	 * @param custId
	 * @return
	 */
	public WaPromotionsLog getWaPromotionsLogByCustId(String custId) throws GopayException;
	
	public List<WaPromotionsLog> getByTypeAndReward(String type,BigDecimal reward) throws GopayException ;
	public String findSumAmtByType() throws GopayException ;
	
}
